package com.acctrue.txmessage.controller;

import com.acctrue.api.RemoteUserService;
import com.acctrue.common.core.domain.LoginBody;
import com.acctrue.common.core.domain.R;
import com.acctrue.txmessage.service.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RefreshScope
@Slf4j
public class TestController implements RemoteUserService {
    @Resource
    private TestService testService;

    @Override
    public R<LoginBody> getUserInfo(String username) {
        log.info("getUserInfo-start");
        return testService.getUserInfo(username);
    }
}
